import request from '@/utils/request'

// 查询消费者缓存区表列表
export function listBuffer(query) {
  return request({
    url: '/system_setting/prodBlankPalletBuffer/list',
    method: 'get',
    params: query,
  })
}

// 查询消费者缓存区表详细
export function getBuffer(consumerBufferId) {
  return request({
    url: '/system_setting/prodBlankPalletBuffer/' + consumerBufferId,
    method: 'get',
  })
}

// 新增消费者缓存区表
export function addBuffer(data) {
  return request({
    url: '/system_setting/prodBlankPalletBuffer',
    method: 'post',
    data: data,
  })
}

// 修改消费者缓存区表
export function updateBuffer(data) {
  return request({
    url: '/system_setting/prodBlankPalletBuffer',
    method: 'put',
    data: data,
  })
}

// 删除消费者缓存区表
export function delBuffer(consumerBufferId) {
  return request({
    url: '/system_setting/prodBlankPalletBuffer/' + consumerBufferId,
    method: 'delete',
  })
}
